﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DongFangGuoKai.WMSPlatform.Domain.HZJLYModel
{
    /// <summary>
    /// 返回结果
    /// </summary>
    public class SuccessTagResults
    {
        public int? code { get; set; }
        public string? message { get; set; }
        public List<SuccessTag>? successTagList { get; set; }
    }
    public class SuccessTag
    {
        /// <summary>
        /// 标签地址
        /// </summary>
        public string? tagIndex { get; set; }

        /// <summary>
        /// 设备序列号
        /// </summary>
        public string? seqNum { get; set; }

        /// <summary>
        /// 墙号
        /// </summary>
        public string? nWall { get; set; }
    }
    
    //--------------------------

    /// <summary>
    /// 亮灯请求数据
    /// </summary>
    public class SuccessTagRequest
    {
        /// <summary>
        /// 墙号（只有一面墙默认为1，如果有两面墙为1和2）
        /// </summary>
        public string? nWall { get; set; }

        /// <summary>
        /// 设备序列号（控制器固定唯一码）
        /// </summary>
        public string? seqNum { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public List<Tag>? tagList { get; set; } = new List<Tag>();

    }

    public class Tag
    {
        /// <summary>
        /// 显示颜色：1 = 白色；6 = 白色闪烁；2 = 红色；7 = 红色闪烁；3 = 黄色；8 = 黄色闪烁；4 = 绿色；9 = 绿色闪烁；5 = 灭灯；10 = 亮灯带；
        /// </summary>
        public int? showColor { get; set; }

        /// <summary>
        /// 显示内容，分播数量（0-不显示）
        /// </summary>
        public string? showData { get; set; }

        /// <summary>
        /// 标签地址（从1开始的连续整数）
        /// </summary>
        public string? tagIndex { get; set; }
    }

    




    public class Extinguished
    {
        public List<TagList> tagList { get; set; }
    }
    /// <summary>
    /// 灭灯请求数据
    /// </summary>
    public class TagList
    {
        /// <summary>
        /// 拍灭内容
        /// </summary>
        public string closeData { get; set; }
        /// <summary>
        /// 标签地址
        /// </summary>
        public string? tagIndex { get; set; }

        /// <summary>
        /// 设备序列号
        /// </summary>
        public string? seqNum { get; set; }

        /// <summary>
        /// 墙号
        /// </summary>
        public string? nWall { get; set; }
    }
}
